﻿using System;
using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.login
{
    class SHLuckRollRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 41;

        private int _residueTime;
        //private string _residueMoney;

        public int ResidueTime
        {
            get
            {
                return _residueTime;
            }

            set
            {
                _residueTime = value;
            }
        }

        //public string ResidueMoney
        //{
        //    get
        //    {
        //        return _residueMoney;
        //    }

        //    set
        //    {
        //        _residueMoney = value;
        //    }
        //}

        public void decode(Input _in)
        {
            ResidueTime = _in.readInt();
            //ResidueMoney = _in.readString();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public int getMessageId()
        {
            return ID;
        }

        public string toString()
        {
            return string.Format("residueTime={0}", ResidueTime.ToString());
        }
    }
}